<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pAdmin
 *
 * @ORM\Table(name="p2p_admin", uniqueConstraints={@ORM\UniqueConstraint(name="id", columns={"id"})}, indexes={@ORM\Index(name="dept_id", columns={"dept_id"})})
 * @ORM\Entity
 */
class P2pAdmin
{
    /**
     * @var string
     *
     * @ORM\Column(name="user", type="string", length=20, nullable=false)
     */
    private $user;

    /**
     * @var string
     *
     * @ORM\Column(name="password", type="string", length=35, nullable=false)
     */
    private $password;

    /**
     * @var integer
     *
     * @ORM\Column(name="dept_id", type="integer", nullable=false)
     */
    private $deptId;

    /**
     * @var integer
     *
     * @ORM\Column(name="group_id", type="smallint", nullable=false)
     */
    private $groupId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="desc", type="text", length=65535, nullable=true)
     */
    private $desc;

    /**
     * @var integer
     *
     * @ORM\Column(name="logonums", type="integer", nullable=true)
     */
    private $logonums = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="logoip", type="string", length=30, nullable=true)
     */
    private $logoip;

    /**
     * @var integer
     *
     * @ORM\Column(name="lastlogotime", type="integer", nullable=true)
     */
    private $lastlogotime = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="province", type="string", length=60, nullable=true)
     */
    private $province;

    /**
     * @var string
     *
     * @ORM\Column(name="city", type="string", length=60, nullable=true)
     */
    private $city;

    /**
     * @var integer
     *
     * @ORM\Column(name="updateall", type="integer", nullable=false)
     */
    private $updateall = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="selectall", type="integer", nullable=false)
     */
    private $selectall = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="m_approve", type="integer", nullable=false)
     */
    private $mApprove = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="user_perms", type="text", length=65535, nullable=false)
     */
    private $userPerms;

    /**
     * @var boolean
     *
     * @ORM\Column(name="try", type="boolean", nullable=false)
     */
    private $try;

    /**
     * @var boolean
     *
     * @ORM\Column(name="status", type="boolean", nullable=false)
     */
    private $status = '0';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="lockdate", type="date", nullable=false)
     */
    private $lockdate;

    /**
     * @var string
     *
     * @ORM\Column(name="lang_set", type="string", length=20, nullable=false)
     */
    private $langSet;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set user
     *
     * @param string $user
     *
     * @return P2pAdmin
     */
    public function setUser($user)
    {
        $this->user = $user;

        return $this;
    }

    /**
     * Get user
     *
     * @return string
     */
    public function getUser()
    {
        return $this->user;
    }

    /**
     * Set password
     *
     * @param string $password
     *
     * @return P2pAdmin
     */
    public function setPassword($password)
    {
        $this->password = $password;

        return $this;
    }

    /**
     * Get password
     *
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Set deptId
     *
     * @param integer $deptId
     *
     * @return P2pAdmin
     */
    public function setDeptId($deptId)
    {
        $this->deptId = $deptId;

        return $this;
    }

    /**
     * Get deptId
     *
     * @return integer
     */
    public function getDeptId()
    {
        return $this->deptId;
    }

    /**
     * Set groupId
     *
     * @param integer $groupId
     *
     * @return P2pAdmin
     */
    public function setGroupId($groupId)
    {
        $this->groupId = $groupId;

        return $this;
    }

    /**
     * Get groupId
     *
     * @return integer
     */
    public function getGroupId()
    {
        return $this->groupId;
    }

    /**
     * Set desc
     *
     * @param string $desc
     *
     * @return P2pAdmin
     */
    public function setDesc($desc)
    {
        $this->desc = $desc;

        return $this;
    }

    /**
     * Get desc
     *
     * @return string
     */
    public function getDesc()
    {
        return $this->desc;
    }

    /**
     * Set logonums
     *
     * @param integer $logonums
     *
     * @return P2pAdmin
     */
    public function setLogonums($logonums)
    {
        $this->logonums = $logonums;

        return $this;
    }

    /**
     * Get logonums
     *
     * @return integer
     */
    public function getLogonums()
    {
        return $this->logonums;
    }

    /**
     * Set logoip
     *
     * @param string $logoip
     *
     * @return P2pAdmin
     */
    public function setLogoip($logoip)
    {
        $this->logoip = $logoip;

        return $this;
    }

    /**
     * Get logoip
     *
     * @return string
     */
    public function getLogoip()
    {
        return $this->logoip;
    }

    /**
     * Set lastlogotime
     *
     * @param integer $lastlogotime
     *
     * @return P2pAdmin
     */
    public function setLastlogotime($lastlogotime)
    {
        $this->lastlogotime = $lastlogotime;

        return $this;
    }

    /**
     * Get lastlogotime
     *
     * @return integer
     */
    public function getLastlogotime()
    {
        return $this->lastlogotime;
    }

    /**
     * Set province
     *
     * @param string $province
     *
     * @return P2pAdmin
     */
    public function setProvince($province)
    {
        $this->province = $province;

        return $this;
    }

    /**
     * Get province
     *
     * @return string
     */
    public function getProvince()
    {
        return $this->province;
    }

    /**
     * Set city
     *
     * @param string $city
     *
     * @return P2pAdmin
     */
    public function setCity($city)
    {
        $this->city = $city;

        return $this;
    }

    /**
     * Get city
     *
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Set updateall
     *
     * @param integer $updateall
     *
     * @return P2pAdmin
     */
    public function setUpdateall($updateall)
    {
        $this->updateall = $updateall;

        return $this;
    }

    /**
     * Get updateall
     *
     * @return integer
     */
    public function getUpdateall()
    {
        return $this->updateall;
    }

    /**
     * Set selectall
     *
     * @param integer $selectall
     *
     * @return P2pAdmin
     */
    public function setSelectall($selectall)
    {
        $this->selectall = $selectall;

        return $this;
    }

    /**
     * Get selectall
     *
     * @return integer
     */
    public function getSelectall()
    {
        return $this->selectall;
    }

    /**
     * Set mApprove
     *
     * @param integer $mApprove
     *
     * @return P2pAdmin
     */
    public function setMApprove($mApprove)
    {
        $this->mApprove = $mApprove;

        return $this;
    }

    /**
     * Get mApprove
     *
     * @return integer
     */
    public function getMApprove()
    {
        return $this->mApprove;
    }

    /**
     * Set userPerms
     *
     * @param string $userPerms
     *
     * @return P2pAdmin
     */
    public function setUserPerms($userPerms)
    {
        $this->userPerms = $userPerms;

        return $this;
    }

    /**
     * Get userPerms
     *
     * @return string
     */
    public function getUserPerms()
    {
        return $this->userPerms;
    }

    /**
     * Set try
     *
     * @param boolean $try
     *
     * @return P2pAdmin
     */
    public function setTry($try)
    {
        $this->try = $try;

        return $this;
    }

    /**
     * Get try
     *
     * @return boolean
     */
    public function getTry()
    {
        return $this->try;
    }

    /**
     * Set status
     *
     * @param boolean $status
     *
     * @return P2pAdmin
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return boolean
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set lockdate
     *
     * @param \DateTime $lockdate
     *
     * @return P2pAdmin
     */
    public function setLockdate($lockdate)
    {
        $this->lockdate = $lockdate;

        return $this;
    }

    /**
     * Get lockdate
     *
     * @return \DateTime
     */
    public function getLockdate()
    {
        return $this->lockdate;
    }

    /**
     * Set langSet
     *
     * @param string $langSet
     *
     * @return P2pAdmin
     */
    public function setLangSet($langSet)
    {
        $this->langSet = $langSet;

        return $this;
    }

    /**
     * Get langSet
     *
     * @return string
     */
    public function getLangSet()
    {
        return $this->langSet;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
